package com.itrustsolution.rms.entities;
// Generated 25 Mei 11 22:19:57 by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * RskRiskSeverity generated by hbm2java
 */
@Entity
@Table(name="rsk_risk_severity"
    ,catalog="rms"
)
public class RskRiskSeverity  implements java.io.Serializable {
    private Integer riskSeverityId;
    private String riskSeverityName;
    private String riskSeverityDesc;
    private boolean riskSeverityIsactive;
    private int riskSeverityValue;
    private Set<TckTicket> tckTickets = new HashSet(0);
          
    public RskRiskSeverity() {
    }

	
    public RskRiskSeverity(String riskSeverityName, String riskSeverityDesc, boolean riskSeverityIsactive, int riskSeverityValue) {
        this.riskSeverityName = riskSeverityName;
        this.riskSeverityDesc = riskSeverityDesc;
        this.riskSeverityIsactive = riskSeverityIsactive;
        this.riskSeverityValue = riskSeverityValue;
    }
    public RskRiskSeverity(String riskSeverityName, String riskSeverityDesc, boolean riskSeverityIsactive, int riskSeverityValue, Set tckTickets) {
       this.riskSeverityName = riskSeverityName;
       this.riskSeverityDesc = riskSeverityDesc;
       this.riskSeverityIsactive = riskSeverityIsactive;
       this.riskSeverityValue = riskSeverityValue;
       this.tckTickets = tckTickets;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="RISK_SEVERITY_ID", unique=true, nullable=false)
    public Integer getRiskSeverityId() {
        return this.riskSeverityId;
    }
    
    public void setRiskSeverityId(Integer riskSeverityId) {
        this.riskSeverityId = riskSeverityId;
    }
    
    @Column(name="RISK_SEVERITY_NAME", nullable=false, length=20)
    public String getRiskSeverityName() {
        return this.riskSeverityName;
    }
    
    public void setRiskSeverityName(String riskSeverityName) {
        this.riskSeverityName = riskSeverityName;
    }
    
    @Column(name="RISK_SEVERITY_DESC", nullable=false, length=50)
    public String getRiskSeverityDesc() {
        return this.riskSeverityDesc;
    }
    
    public void setRiskSeverityDesc(String riskSeverityDesc) {
        this.riskSeverityDesc = riskSeverityDesc;
    }
    
    @Column(name="RISK_SEVERITY_ISACTIVE", nullable=false)
    public boolean isRiskSeverityIsactive() {
        return this.riskSeverityIsactive;
    }
    
    public void setRiskSeverityIsactive(boolean riskSeverityIsactive) {
        this.riskSeverityIsactive = riskSeverityIsactive;
    }

@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="rskRiskSeverity")
    public Set<TckTicket> getTckTickets() {
        return this.tckTickets;
    }
    
    public void setTckTickets(Set<TckTicket> tckTickets) {
        this.tckTickets = tckTickets;
    }

}


